<!-- NAVBAR -->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="brand">
        <a href="index.html"><img src="__PUBLIC_HIS__/img/logo-dark.png" alt="Klorofil Logo" class="img-responsive logo"></a>
    </div>
    <div class="container-fluid">
        <div id="navbar-menu">
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <?php if($_SESSION['user_info']['p_id']==0){?>
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <?php if (!empty($_SESSION['user_relate']['picture'])){?>
                            <img src="<?php echo C('UPLOAD_DOCTOR').$_SESSION['user_relate']['picture'];?>" class="img-circle" alt="诊所图片">
                            <?php }else{?>
                            <img src="<?php echo C('UPLOAD_DOCTOR').'doctor_def.jpg';?>">
                            <?php }?>
                            <span><?php echo $_SESSION['user_relate']['owner_name'];?></span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
                    <?php }else{?>
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <?php if (!empty($_SESSION['user_relate']['picture'])){?>
                            <img src="<?php echo C('UPLOAD_DOCTOR').$_SESSION['user_relate']['picture'];?>" class="img-circle" alt="诊所图片">
                            <?php }else{?>
                            <img src="<?php echo C('UPLOAD_DOCTOR').'doctor_def.jpg';?>">
                            <?php }?>
                            <span><?php echo $_SESSION['user_relate']['true_name']?></span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
                    <?php }?>
                    <ul class="dropdown-menu">
                        <li class="revisePwd"><a href="javascript:void(0)"><i class="lnr lnr-exit"></i> <span>修改密码</span></a></li>
                        <li><a href="/Login/logout"><i class="lnr lnr-exit"></i> <span>退出登录</span></a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<!-- END NAVBAR -->
<!-- LEFT SIDEBAR -->
<div id="sidebar-nav" class="sidebar">
    <div class="sidebar-scroll">
        <nav>
            <ul class="nav" id="ulApp">
                <li><a href="{:U('/Index/index')}" class="index"><i class="lnr lnr-home"></i> <span>首页</span></a></li>
                <?php if($_SESSION['user_info']['p_id']!=0):?>
                <li><a href="{:U('/Index/editPersonal')}" class="personal"><i class="fa fa-user"></i> <span>个人资料</span></a></li>
                <?php endif;?>
            </ul>
        </nav>
    </div>
</div>
<!-- END LEFT SIDEBAR -->
